package com.nbst.model.mes;

import java.util.Date;

import com.nbst.model.base.OrderBy;

/**
 * 
 * @ClassName: Card
 * @Description:工序流转卡
 * @author 李懿礼
 * @date 2018年10月22日
 *
 */
public class Card extends OrderBy implements Comparable<Card> {
	/** id */
	private Integer id;

	/** 物料内码 */
	private Integer fItemID;

	/** 物料名称 */
	private String fName;

	/** 规格 */
	private String fModel;

	/** 工序id */
	private Integer fOperId;

	/** 工序代码 */
	private String fOperNumber;

	/** 工序号 */
	private Integer fOperSN;

	/** 工序名称 */
	private String fOperName;

	/** 工时单位 */
	private String fTimeUnit;

	/** 部门名称 */
	private String fDepName;

	/** 制单人 */
	private String fBillerName;

	/** 部门id */
	private Integer fDepId;

	/** 生产任务单id */
	private Integer fIcmoId;

	/** 计划生产数量 */
	private Double fAuxqty;

	/** 计划生产数量 */
	private Double fyqty;

	/** 投产数量 */
	private Double ppQty;

	/** 良品数 */
	private Double fQtyGood;

	/** 因工报废数量 */
	private Double fAuxQtyScrap;

	/** 因料报废数量 */
	private Double fAuxQtyForItem;

	/** 丢失数 */
	private Double fQtyLost;

	/** 返修数 */
	private Double fReworkQty;

	/** 其他数 */
	private Double fOthQty;

	// 改制数
	private Double fRestructQty;

	// 转入数
	private Double fTransferQty;

	/** 剩余可投产数量 */
	private Double mayPpQty;

	/** 已生产总数 */
	private Double fQtyFinish;

	/** fIsOut */
	private Integer fIsOut;

	/** 标准工时 */
	private Double fTimeRun;

	/** 图号 */
	private String fChartNumber;

	/** 备注 */
	private String fNote;

	/** 委外数量 */
	private Double subcOutQty;

	/** 外协接收数量 */
	private Double subcInQty;

	/** 更新时间 */
	private Date updateTime;

	/** 备注 */
	private String fRemark;

	/** 拆分数量 */
	private Double splitQty;

	/** 期初数 */
	private Double fOpeningQty;

	/** 删除标记 0为已删除 */
	private Integer fClosed;

	/** 计划开始时间 */
	private Date fPlanCommitDate;

	/** 计划结束时间 */
	private Date fPlanFinishDate;

	/** 实际开始时间 */
	private Date fCommitDate;

	/** 实际完成时间 */
	private Date fFinishDate;

	/** 设备组名称 */
	private String fMacGroupName;

	/** 设备组id */
	private String fMacGroupId;

	/** 物料代码 */
	private String fNumber;

	/** 已派工数 */
	private Double fDispatchQty;

	/** 未派工数 */
	private Double noDispatchQty;

	private Integer fIsLastOper;

	/** 是否合并 0为否 1为合并后的工序 2为合并后不能操作的工序，所以合并最少要有两道工序 */
	private Integer fIsMerge;

	/** 抽检数 */
	private Double fSamplingQty;

	/** 合并码 */
	private String fMergeCode;

	/** 可接收上道工序流转到本道工序的数量 */
	private Double kQty;

	/** 生产任务单数量 */
	private Double fQty;

	/** 阶断 1 2 3 4 装配生产任务的4个阶断 */
	private Integer unitNum;

	/** 任务单号 */
	private String fBillNo;

	/** 检验方式 351全检 352免检 353抽检 默认免检352 */
	private Integer fqualityChkID;

	/** 定额 */
	private Double fPieceRate;

	/** 任务单制单时间 */
	private Date fDate;

	/** 是否为首道工序 */
	private Integer fIsFirstOp;

	/** 工序入库数 */
	private Double fOperInStockQty;

	/** 原始工序名称 */
	private String fOper;

	/** 状态 */
	private Integer fStatus;

	/** 待检数 */
	private Integer fNotCheckNum;

	/** 进度说明 */
	private String fProductionSchedule;

	/** 合并修改标志 */
	private String mergeFlag;

	/** 原加工说明 */
	private String fPrimaryNote;
	
	/** 备注 */
	private String fIcmoNote;
	
	/** 摘要 */
	private String fExplanation;

	public String getfBillerName() {
		return fBillerName;
	}

	public void setfBillerName(String fBillerName) {
		this.fBillerName = fBillerName;
	}

	public Double getfQty() {
		return fQty;
	}

	public void setfQty(Double fQty) {
		this.fQty = fQty;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getfItemID() {
		return fItemID;
	}

	public void setfItemID(Integer fItemID) {
		this.fItemID = fItemID;
	}

	public String getfName() {
		return fName;
	}

	public void setfName(String fName) {
		this.fName = fName;
	}

	public Integer getfOperId() {
		return fOperId;
	}

	public void setfOperId(Integer fOperId) {
		this.fOperId = fOperId;
	}

	public String getfOperNumber() {
		return fOperNumber;
	}

	public void setfOperNumber(String fOperNumber) {
		this.fOperNumber = fOperNumber;
	}

	public Integer getfOperSN() {
		return fOperSN;
	}

	public void setfOperSN(Integer fOperSN) {
		this.fOperSN = fOperSN;
	}

	public String getfOperName() {
		return fOperName;
	}

	public void setfOperName(String fOperName) {
		this.fOperName = fOperName;
	}

	public String getfTimeUnit() {
		return fTimeUnit;
	}

	public void setfTimeUnit(String fTimeUnit) {
		this.fTimeUnit = fTimeUnit;
	}

	public String getfDepName() {
		return fDepName;
	}

	public void setfDepName(String fDepName) {
		this.fDepName = fDepName;
	}

	public Integer getfDepId() {
		return fDepId;
	}

	public void setfDepId(Integer fDepId) {
		this.fDepId = fDepId;
	}

	public Integer getfIcmoId() {
		return fIcmoId;
	}

	public void setfIcmoId(Integer fIcmoId) {
		this.fIcmoId = fIcmoId;
	}

	public Double getfAuxqty() {
		return fAuxqty;
	}

	public void setfAuxqty(Double fAuxqty) {
		this.fAuxqty = fAuxqty;
	}

	public Double getPpQty() {
		return ppQty;
	}

	public void setPpQty(Double ppQty) {
		this.ppQty = ppQty;
	}

	public Double getfQtyGood() {
		return fQtyGood;
	}

	public void setfQtyGood(Double fQtyGood) {
		this.fQtyGood = fQtyGood;
	}

	public Double getfAuxQtyScrap() {
		return fAuxQtyScrap;
	}

	public void setfAuxQtyScrap(Double fAuxQtyScrap) {
		this.fAuxQtyScrap = fAuxQtyScrap;
	}

	public Double getfAuxQtyForItem() {
		return fAuxQtyForItem;
	}

	public void setfAuxQtyForItem(Double fAuxQtyForItem) {
		this.fAuxQtyForItem = fAuxQtyForItem;
	}

	public Double getfQtyLost() {
		return fQtyLost;
	}

	public void setfQtyLost(Double fQtyLost) {
		this.fQtyLost = fQtyLost;
	}

	public Double getfReworkQty() {
		return fReworkQty;
	}

	public void setfReworkQty(Double fReworkQty) {
		this.fReworkQty = fReworkQty;
	}

	public Double getfOthQty() {
		return fOthQty;
	}

	public void setfOthQty(Double fOthQty) {
		this.fOthQty = fOthQty;
	}

	public Double getMayPpQty() {
		return mayPpQty;
	}

	public void setMayPpQty(Double mayPpQty) {
		this.mayPpQty = mayPpQty;
	}

	public Double getfQtyFinish() {
		return fQtyFinish;
	}

	public void setfQtyFinish(Double fQtyFinish) {
		this.fQtyFinish = fQtyFinish;
	}

	public Integer getfIsOut() {
		return fIsOut;
	}

	public void setfIsOut(Integer fIsOut) {
		this.fIsOut = fIsOut;
	}

	public Double getfTimeRun() {
		return fTimeRun;
	}

	public void setfTimeRun(Double fTimeRun) {
		this.fTimeRun = fTimeRun;
	}

	public String getfChartNumber() {
		return fChartNumber;
	}

	public void setfChartNumber(String fChartNumber) {
		this.fChartNumber = fChartNumber;
	}

	public String getfNote() {
		return fNote;
	}

	public void setfNote(String fNote) {
		this.fNote = fNote;
	}

	public Double getSubcOutQty() {
		return subcOutQty;
	}

	public void setSubcOutQty(Double subcOutQty) {
		this.subcOutQty = subcOutQty;
	}

	public Double getSubcInQty() {
		return subcInQty;
	}

	public void setSubcInQty(Double subcInQty) {
		this.subcInQty = subcInQty;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public String getfRemark() {
		return fRemark;
	}

	public void setfRemark(String fRemark) {
		this.fRemark = fRemark;
	}

	public Double getSplitQty() {
		return splitQty;
	}

	public void setSplitQty(Double splitQty) {
		this.splitQty = splitQty;
	}

	public Double getfOpeningQty() {
		return fOpeningQty;
	}

	public Double getfRestructQty() {
		return fRestructQty;
	}

	public Double getfTransferQty() {
		return fTransferQty;
	}

	public void setfTransferQty(Double fTransferQty) {
		this.fTransferQty = fTransferQty;
	}

	public void setfRestructQty(Double fRestructQty) {
		this.fRestructQty = fRestructQty;
	}

	public void setfOpeningQty(Double fOpeningQty) {
		this.fOpeningQty = fOpeningQty;
	}

	public Integer getfClosed() {
		return fClosed;
	}

	public void setfClosed(Integer fClosed) {
		this.fClosed = fClosed;
	}

	public Date getfPlanCommitDate() {
		return fPlanCommitDate;
	}

	public void setfPlanCommitDate(Date fPlanCommitDate) {
		this.fPlanCommitDate = fPlanCommitDate;
	}

	public Date getfPlanFinishDate() {
		return fPlanFinishDate;
	}

	public void setfPlanFinishDate(Date fPlanFinishDate) {
		this.fPlanFinishDate = fPlanFinishDate;
	}

	public Date getfCommitDate() {
		return fCommitDate;
	}

	public void setfCommitDate(Date fCommitDate) {
		this.fCommitDate = fCommitDate;
	}

	public Date getfFinishDate() {
		return fFinishDate;
	}

	public void setfFinishDate(Date fFinishDate) {
		this.fFinishDate = fFinishDate;
	}

	public String getfMacGroupName() {
		return fMacGroupName;
	}

	public void setfMacGroupName(String fMacGroupName) {
		this.fMacGroupName = fMacGroupName;
	}

	public String getfMacGroupId() {
		return fMacGroupId;
	}

	public void setfMacGroupId(String fMacGroupId) {
		this.fMacGroupId = fMacGroupId;
	}

	public String getfNumber() {
		return fNumber;
	}

	public void setfNumber(String fNumber) {
		this.fNumber = fNumber;
	}

	public Double getfDispatchQty() {
		return fDispatchQty;
	}

	public void setfDispatchQty(Double fDispatchQty) {
		this.fDispatchQty = fDispatchQty;
	}

	public Double getNoDispatchQty() {
		return noDispatchQty;
	}

	public void setNoDispatchQty(Double noDispatchQty) {
		this.noDispatchQty = noDispatchQty;
	}

	public String getfModel() {
		return fModel;
	}

	public void setfModel(String fModel) {
		this.fModel = fModel;
	}

	public Integer getfIsLastOper() {
		return fIsLastOper;
	}

	public void setfIsLastOper(Integer fIsLastOper) {
		this.fIsLastOper = fIsLastOper;
	}

	public Integer getfIsMerge() {
		return fIsMerge;
	}

	public void setfIsMerge(Integer fIsMerge) {
		this.fIsMerge = fIsMerge;
	}

	public Double getfSamplingQty() {
		return fSamplingQty;
	}

	public void setfSamplingQty(Double fSamplingQty) {
		this.fSamplingQty = fSamplingQty;
	}

	public String getfMergeCode() {
		return fMergeCode;
	}

	public void setfMergeCode(String fMergeCode) {
		this.fMergeCode = fMergeCode;
	}

	public Double getkQty() {
		return kQty;
	}

	public void setkQty(Double kQty) {
		this.kQty = kQty;
	}

	public Integer getUnitNum() {
		return unitNum;
	}

	public void setUnitNum(Integer unitNum) {
		this.unitNum = unitNum;
	}

	public String getfBillNo() {
		return fBillNo;
	}

	public void setfBillNo(String fBillNo) {
		this.fBillNo = fBillNo;
	}

	public Integer getFqualityChkID() {
		return fqualityChkID;
	}

	public void setFqualityChkID(Integer fqualityChkID) {
		this.fqualityChkID = fqualityChkID;
	}

	public Double getfPieceRate() {
		return fPieceRate;
	}

	public void setfPieceRate(Double fPieceRate) {
		this.fPieceRate = fPieceRate;
	}

	public Date getfDate() {
		return fDate;
	}

	public void setfDate(Date fDate) {
		this.fDate = fDate;
	}

	public Integer getfIsFirstOp() {
		return fIsFirstOp;
	}

	public void setfIsFirstOp(Integer fIsFirstOp) {
		this.fIsFirstOp = fIsFirstOp;
	}

	public Double getFyqty() {
		return fyqty;
	}

	public void setFyqty(Double fyqty) {
		this.fyqty = fyqty;
	}

	public Double getfOperInStockQty() {
		return fOperInStockQty;
	}

	public void setfOperInStockQty(Double fOperInStockQty) {
		this.fOperInStockQty = fOperInStockQty;
	}

	public String getfOper() {
		return fOper;
	}

	public void setfOper(String fOper) {
		this.fOper = fOper;
	}

	public Integer getfStatus() {
		return fStatus;
	}

	public void setfStatus(Integer fStatus) {
		this.fStatus = fStatus;
	}

	public Integer getfNotCheckNum() {
		return fNotCheckNum;
	}

	public void setfNotCheckNum(Integer fNotCheckNum) {
		this.fNotCheckNum = fNotCheckNum;
	}

	public String getfProductionSchedule() {
		return fProductionSchedule;
	}

	public void setfProductionSchedule(String fProductionSchedule) {
		this.fProductionSchedule = fProductionSchedule;
	}

	public String getMergeFlag() {
		return mergeFlag;
	}

	public void setMergeFlag(String mergeFlag) {
		this.mergeFlag = mergeFlag;
	}

	public String getfPrimaryNote() {
		return fPrimaryNote;
	}

	public void setfPrimaryNote(String fPrimaryNote) {
		this.fPrimaryNote = fPrimaryNote;
	}

	public String getfIcmoNote() {
		return fIcmoNote;
	}

	public void setfIcmoNote(String fIcmoNote) {
		this.fIcmoNote = fIcmoNote;
	}

	public String getfExplanation() {
		return fExplanation;
	}

	public void setfExplanation(String fExplanation) {
		this.fExplanation = fExplanation;
	}

	@Override
	public String toString() {
		return "Card [id=" + id + ", fItemID=" + fItemID + ", fName=" + fName + ", fModel=" + fModel + ", fOperId="
				+ fOperId + ", fOperNumber=" + fOperNumber + ", fOperSN=" + fOperSN + ", fOperName=" + fOperName
				+ ", fTimeUnit=" + fTimeUnit + ", fDepName=" + fDepName + ", fBillerName=" + fBillerName + ", fDepId="
				+ fDepId + ", fIcmoId=" + fIcmoId + ", fAuxqty=" + fAuxqty + ", fyqty=" + fyqty + ", ppQty=" + ppQty
				+ ", fQtyGood=" + fQtyGood + ", fAuxQtyScrap=" + fAuxQtyScrap + ", fAuxQtyForItem=" + fAuxQtyForItem
				+ ", fQtyLost=" + fQtyLost + ", fReworkQty=" + fReworkQty + ", fOthQty=" + fOthQty + ", fRestructQty="
				+ fRestructQty + ", fTransferQty=" + fTransferQty + ", mayPpQty=" + mayPpQty + ", fQtyFinish="
				+ fQtyFinish + ", fIsOut=" + fIsOut + ", fTimeRun=" + fTimeRun + ", fChartNumber=" + fChartNumber
				+ ", fNote=" + fNote + ", subcOutQty=" + subcOutQty + ", subcInQty=" + subcInQty + ", updateTime="
				+ updateTime + ", fRemark=" + fRemark + ", splitQty=" + splitQty + ", fOpeningQty=" + fOpeningQty
				+ ", fClosed=" + fClosed + ", fPlanCommitDate=" + fPlanCommitDate + ", fPlanFinishDate="
				+ fPlanFinishDate + ", fCommitDate=" + fCommitDate + ", fFinishDate=" + fFinishDate + ", fMacGroupName="
				+ fMacGroupName + ", fMacGroupId=" + fMacGroupId + ", fNumber=" + fNumber + ", fDispatchQty="
				+ fDispatchQty + ", noDispatchQty=" + noDispatchQty + ", fIsLastOper=" + fIsLastOper + ", fIsMerge="
				+ fIsMerge + ", fSamplingQty=" + fSamplingQty + ", fMergeCode=" + fMergeCode + ", kQty=" + kQty
				+ ", fQty=" + fQty + ", unitNum=" + unitNum + ", fBillNo=" + fBillNo + ", fqualityChkID="
				+ fqualityChkID + ", fPieceRate=" + fPieceRate + ", fDate=" + fDate + ", fIsFirstOp=" + fIsFirstOp
				+ ", fOperInStockQty=" + fOperInStockQty + ", fOper=" + fOper + ", fStatus=" + fStatus
				+ ", fNotCheckNum=" + fNotCheckNum + ", fProductionSchedule=" + fProductionSchedule + ", mergeFlag="
				+ mergeFlag + ", fPrimaryNote=" + fPrimaryNote + ", fIcmoNote=" + fIcmoNote + ", fExplanation="
				+ fExplanation + "]";
	}

	@Override
	public int compareTo(Card o) {
		return this.fOperSN.compareTo(o.getfOperSN());
	}

}